﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using imaginecup.util;
using imaginecup.information;
using imaginecup.objectManager;
using Imaginecup.gameState.malaria.componentInit;
using Imaginecup.sprite;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Imaginecup.sprite.changeSourceSize;
using Imaginecup.util.resourceMan;

namespace Imaginecup.gameState.malaria.component
{
    public class CmpDefaultRender : BaseRenderComponent
    {
        public CmpDefaultRender(GObjectID a_GID, ObjectManager objMan, ISprite sprite, SComponentTypeID sid)
            : base(a_GID, objMan, sid)
        {
            m_Sprite = sprite;
        }

        public override void Draw(GameTime gameTime , SpriteBatch spriteBatch)
        {
            ICmpEntity cmpEntity = GetEntity();
            EntityInfo info = (EntityInfo)cmpEntity.GetEntityInfo();

            m_Sprite.Draw(spriteBatch, info);
        }

    }
}
